﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="fileman.aspx.vb" Inherits="FileMan.fileman" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>FileMan.NET</title>
        <link type="text/css" href="Content/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="Content/bootstrap-additions.css" />
        <!-- File upload -->
        <script src="Scripts/upload/es5-sham.min.js"></script>
        <script src="Scripts/upload/es5-shim.min.js"></script>
        <script src="Scripts/upload/console-sham.min.js"></script>
        <script src="Scripts/angular.min.js"></script>
        <script src="Scripts/angular-strap.min.js"></script>
        <script src="Scripts/modal.min.js"></script>
        <script src="Scripts/aside.min.js"></script>
        <script src="Scripts/app/app.js"></script>
        <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
        <script src="Scripts/upload/angular-file-upload.min.js"></script>
        <script src="Scripts/upload/controllers.js"></script>
        <style>
            .my-drop-zone { border: dotted 3px lightgray; }
            .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */
            .another-file-over-class { border: dotted 3px green; }
            .upload-modal { top: 5%; bottom: 5%; left: 5%; right: 5%; }
            .upload-modal-body { max-height: 100%; height: 85%; max-width: 100%; width: 85%;}
            html, body { height: 100%; }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
            <div data-ng-app="fileMan" data-ng-controller="FilesControler as filesCtrl" class="container">
                <h3>{{ filesCtrl.getCurrentFolder() }}</h3>
                <nav class="navbar navbar-default" role="navigation">
                    <div class="container-fluid">
                        <div class="navbar-header">
                            <button type="button" class="btn btn-default navbar-btn" data-ng-click="filesCtrl.startNewFolder()">Add Folder</button>
                            <button type="button" class="btn btn-default navbar-btn" data-ng-click="filesCtrl.startUpload()">Upload File</button>
                        </div>
                    </div>
                </nav>
                <div data-ng-repeat="line in filesCtrl.getUiLines(6)">
                    <div class="row">
                        <div class="col-sm-2" data-ng-repeat="file in line" data-ng-click="filesCtrl.clickFile(file)">
                            <img data-ng-src="{{ file.thumbnail }}" class="img-responsive thumbnail" />
                            <p>{{ file.name }}</p>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </body>
</html>
